package com.itheima.object;

/**
 * @author jiangxun
 * @date 11-14-2024
 */
public class Student {
    String name;
    double chinese;
    double math;

    public void printAllScore(){
        System.out.println(name+"的总成绩为："+(chinese+math));
    }
    public  void printAverageScore(){
        System.out.println(name+"的平均成绩为："+((chinese+math)/2));
    }
}
